<div class="body" style="text-align: center;">

	<div class="lunchbox">
		<table align="center" width="30%">
			<tr style="background-color: #999;">
				<td>Nom du fichier</td>
				<td>Taille</td>
				<td>Date</td>
				<td>Voir</td>
				<td>Supprimer</td>
			</tr>
			<?php if(!$files){?>
			<tr>
			<td>Il n'a y pas de fichier lunch box...</td>
			</tr>
			<?php }else{?>
			<?php foreach ($files as $file):?>
			<tr>
			<td><?=$file['name']?>
			</td>
			<td><?=$file['size']?>
			</td>
			<td><?=date(('d-m-Y H:i:s'),$file['date'])?>
			</td>
			<td><a href="<?=base_url('lunch_pdf').'/'.$file['name']?>"
				target="_blank"><img src="<?=base_url('resources/imgs/find.png')?>"
					height="20" />
			</a>
			</td>
			<td><a href="<?=site_url('admin990/lunchbox/delete')?>?director=lunch_pdf&file_name=<?=$file['name']?>"><img src="<?=base_url('resources/imgs/delete.png')?>"
					height="18" /></a></td>
			</tr>
			<?php endforeach;?>
			<?php }?>
			<?php if(!$cartes){?>
			<tr>
			<td>Il n'a y pas de carte de menu...</td>
			</tr>
			<?php }else{?>
			<?php foreach ($cartes as $carte):?>
			<tr>
			<td><?=$carte['name']?>
			</td>
			<td><?=$carte['size']?>
			</td>
			<td><?=date(('d-m-Y H:i:s'),$carte['date'])?>
			</td>
			<td><a href="<?=base_url('carte_pdf').'/'.$carte['name']?>"
				target="_blank"><img src="<?=base_url('resources/imgs/find.png')?>"
					height="20" />
			</a>
			</td>
			<td><a href="<?=site_url('admin990/lunchbox/delete')?>?director=carte_pdf&file_name=<?=$carte['name']?>"><img src="<?=base_url('resources/imgs/delete.png')?>"
					height="18" /></a></td>
			</tr>
			<?php endforeach;?>
			<?php }?>
		</table>
		<hr />
		<h3>Upload votre fichier PDF</h3>
		<form action="<?=site_url('admin990/lunchbox/do_upload')?>"
			method="post" enctype="multipart/form-data">
			<input type="radio" name="type" value="1" checked="checked"> Lunch Box &nbsp;- - -
			<input type="radio" name="type" value="2"> Carte de Menu<br><br>
			<input type="file" name="userfile" size="20" /> <br />
			<br /> <input type="submit" value="upload" />
		</form>

	</div>

</div>
</body>
